Skip to content

fix(release): pass GH_TOKEN to Publish-to-GitHub-Packages step#275

Merged
jdfalk merged 1 commit intomainfrom
fix/release-publish-gh-token
Apr 29, 2026
Merged

fix(release): pass GH_TOKEN to Publish-to-GitHub-Packages step#275
jdfalk merged 1 commit intomainfrom
fix/release-publish-gh-token

Conversation

@jdfalk
Copy link
Copy Markdown
Owner

@jdfalk jdfalk commented Apr 29, 2026

Summary

publish_to_github_packages.py shells out to gh release upload, which hard-requires GH_TOKEN in the environment. Without it, every release caller fails with:

To use GitHub CLI in a GitHub Actions workflow, set the GH_TOKEN environment variable.
Error: Process completed with exit code 4.

Caught by burndown-runner-image's first publish run today. Fix is to thread GH_TOKEN: ${{ github.token }} (and GITHUB_TOKEN for belt-and-braces — some scripts in the same step might use it) into the step's env: block.

Test plan

  • Re-trigger the burndown-runner-image build workflow after merge to confirm publish succeeds

🤖 Generated with Claude Code

publish_to_github_packages.py shells out to `gh release upload`, which
hard-requires GH_TOKEN in the environment. Without it, every release
caller errors at "To use GitHub CLI in a GitHub Actions workflow, set
the GH_TOKEN environment variable" and exits 4. Caught by burndown-
runner-image's first publish run.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions github-actions Bot added github-actions GitHub Actions related work size/XS module:config Configuration management workflow:github-actions GitHub Actions workflows labels Apr 29, 2026
@jdfalk jdfalk merged commit dac2f69 into main Apr 29, 2026
34 of 39 checks passed
@jdfalk jdfalk deleted the fix/release-publish-gh-token branch April 29, 2026 03:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

github-actions GitHub Actions related work module:config Configuration management size/XS workflow:github-actions GitHub Actions workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant